import { ajax_tool } from "./common.js";
import api from "./api.js";

// 登录请求
export function login(data) {
    return ajax_tool("POST",
    api.loginApi,
    data);
}

// 获取场次请求
export function sessionTime(data) {
    return ajax_tool('GET',
    api.sessionTimeApi,
    data)
}

// 预约某天场次的请求
export function appointmentTime(data) {
    return ajax_tool('POST',
    api.appointmentTimeApi,
    data)
}

// 获取预约二维码
export function verifyCode(data) {
    return ajax_tool('GET',
    api.verifyCodeApi,
    data)
}

// 获取预约记录
export function sessionRecord(data) {
    return ajax_tool('POST',
    api.sessionRecordApi,
    data)
}

// 获取时间列表
export function timeList(data) {
    return ajax_tool('GET',
    api.timeListApi,
    data)
}
